Skip to content

feat: corpus-back echo recipe loader + hello-world#90

Merged
KailasMahavarkar merged 1 commit intomainfrom
feat/corpus-echo-recipes
Apr 21, 2026
Merged

feat: corpus-back echo recipe loader + hello-world#90
KailasMahavarkar merged 1 commit intomainfrom
feat/corpus-echo-recipes

Conversation

@KailasMahavarkar
Copy link
Copy Markdown
Collaborator

Summary

  • Adds corpus support to src/plugins/echo/tools/get-recipe.ts with a generic per-recipe loader (validates name/category/description/when/code) that falls back to the in-file RECIPES registry when the slice is missing
  • Creates the backend.echo corpus namespace
  • Adds corpus-backed recipe slice: hello-world
  • Registers backend.echo in corpus/index.yaml
  • New tests/echo-recipe-corpus-backed-tools-behaviour.test.ts asserts corpus source for hello-world and fallback for crud-api

Test plan

  • bun test tests/echo-recipe-corpus-backed-tools-behaviour.test.ts - 2 pass
  • bun run build - typecheck exit 0

Adds corpus support to `src/plugins/echo/tools/get-recipe.ts`. Tool now reads per-recipe slices from `corpus/backend/echo/<name>.yaml`, validates required fields (category, description, when, code), and falls back to the in-file RECIPES registry when the corpus entry is missing or invalid.

Creates the echo corpus namespace:
- `corpus/backend/echo/index.yaml` registers the `backend.echo` namespace and recipe files
- `corpus/backend/echo/hello-world.yaml` captures the minimal routing recipe (echo.New() + GET + e.Start gotchas)
- `corpus/index.yaml` registers the new namespace

New `tests/echo-recipe-corpus-backed-tools-behaviour.test.ts` asserts corpus source for hello-world and fallback for crud-api.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KailasMahavarkar KailasMahavarkar merged commit 413b91c into main Apr 21, 2026
4 checks passed
@KailasMahavarkar KailasMahavarkar deleted the feat/corpus-echo-recipes branch April 21, 2026 21:14
KailasMahavarkar added a commit that referenced this pull request Apr 22, 2026
Destructive reset of repo tree to 62f487e (feat: expand platform support to 12 IDEs/CLIs with format-aware patching) from 2026-04-15.

Wipes all work merged to main after 62f487e including PRs #63..#92: docker-primary fixes, topology manifest introduction, routing/artifact contracts, workspace-first routing, all corpus-backed slice PRs (#81..#90), corpus/tests removal (#91), MCP runtime deletion + topology enforcement (#92).

Tree equals 62f487e exactly. This is a destructive reset expressed as a single forward commit because branch protection on main forbids non-fast-forward push; the admin-merge path is used instead.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant